<?php
/**
* VIDEO CONFERENCES
* Copyright (c) 2011 
* Author: Dmitriy Tovkach (ragvalod@gmail.com)
* @license		GNU/GPL
**/

// no direct access
defined('_JEXEC') or die('Restricted access');
require_once (JPATH_COMPONENT.DS.'controller.php');




//$social  = new VideoSocial();

$controller = new VideoconferencesController( );

// Perform the Request task

if (JRequest::getCmd('update') == "1" && JRequest::getCmd('format') == "ajax")
{
	$controller->fix_video_conferences(JRequest::getCmd('id'));
	
	
//    echo JRequest::getCmd('id');
	die;
}


if (JRequest::getCmd('task') == "endconference")
{
    $controller->endvideoconferences();    
} else if (JRequest::getCmd('task') == "adduser")
{
    
    $controller->addtovideoconferences();   
}
else
{
    $controller->execute(JRequest::getCmd('task'));    
}

// Redirect if set by the controller
$controller->redirect();


?>